package com.blue.service;

public class OrderServiceImpl implements OrderService {
    @Override
    public void insertOrder() {
        try {
            System.out.println("添加订单中...");
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void deleteOrder() {
        try {
            System.out.println("删除订单中...");
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void modifyOrder() {
        try {
            System.out.println("修改订单中...");
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public String selectOrderById(Integer id) {
        try {
            System.out.println("查询订单中...");
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return String.valueOf(id);
    }
}
